package com.kuang.system.mapper;

import com.kuang.bascic.mapper.BaseMapper;
import com.kuang.system.domain.Menu;
import com.kuang.system.domain.Permission;
import com.kuang.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper  extends BaseMapper<Role> {
    List<Role> selectTreeDepartment();

    void removeMeun(Long id);

    void romePremission(Long id);

    void saveRolePremission(@Param("id") Long id,@Param("permissions") List<Long> permissions);


    void saveRoleMenu(@Param("id")Long id,@Param("menus") List<Long> menus);
}
